import request from '@/utils/request'

// 出库单列表
export function fetchStockOutList(params) {
  return request({
    url: '/operation/opStockOut/queryList',
    method: 'get',
    params: {
      'equipmentName':params.name,
      'multiStatus':params.multiStatus,
      'billStt': params.billStt,
      'pageIndex': params.pageIndex,
      'pageSize': params.pageSize
    },
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqGet'

  })
}
// 修改出库
export function stockOutUpdate(data) {
  return request({
    url: '/operation/opStockOut/update',
    method: 'put',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPut'

  })
}

// 销售出库
export function purchaseOut(data) {
  return request({
    url: '/operation/opStockOut/purchaseEnter',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 退货出库
export function returnOut(data) {
  return request({
    url: '/operation/opStockOut/returnEnter',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 安装出库
export function installOut(data) {
  return request({
    url: '/operation/opStockOut/installOut',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

